U.S. FlagAn official website of the United States government
dot gov icon
Official websites use .gov

A .gov website belongs to an official government organization in the United States.

icon https icon
Secure .gov websites use HTTPS

A lock () or https:// means you've safely connected to the .gov website. Share sensitive information only on official, secure websites.

Data Policy"; echo "
"; echo "

\n"; include "../../../incs/datapolicy.inc"; echo "\n"; echo "\n"; echo "\n"; echo "


\n"; echo "\n"; echo "

\n"; } else { print "

Mobile Laboratory Data Download

"; $filterArr=array(); if (array_key_exists('filter', $_POST)) { $filterArr = $_POST['filter']; } print <<<_HTML_

Filter selection menu by type of measurement:

_HTML_; // All of this is to remember checkbox selections when submit button is clicked. if (in_array("Ag",$filterArr)) { print " Ag "; } else { print " Ag "; } if (in_array("Aliso Canyon",$filterArr)) { print " Aliso Canyon "; } else { print " Aliso Canyon "; } if (in_array("Aspen",$filterArr)) { print " Aspen "; } else { print " Aspen "; } if (in_array("Boulder",$filterArr)) { print " Boulder
"; } else { print " Boulder
"; } if (in_array("Denver roadside emissions",$filterArr)) { print " Denver roadside emissions
"; } else { print " Denver roadside emissions
"; } if (in_array("Oil and Gas",$filterArr)) { print " Oil and Gas "; } else { print " Oil and Gas "; } if (in_array("Test",$filterArr)) { print " Test

"; } else { print " Test

"; } if (in_array("CIMS",$filterArr)) { print "

Instruments: CIMS "; } else { print "

Instruments: CIMS "; } if (in_array("WIBS",$filterArr)) { print " WIBS

"; } else { print " WIBS

"; } print " "; print "

"; // use one form so it remembers filter selections while choosing a drive. // Bug fix 20220608. Form is closed in filtermenu(). if (array_key_exists('filter', $_POST)) { filtermenu($filterArr); } else { filtermenu(array("All")); } // include "../drvpopupdz.inc"; // old method just produced one popup menu with all drives. include "DataDownload.inc"; if (array_key_exists('dayselected', $_POST)) { $day = trim($_POST['dayselected']); $day = strip_tags($day); if (((strlen($day) == 8) or (strlen($day) == 11)) and ((substr($day, 0, 4)=="2014") or (substr($day, 0, 4)=="2015") or (substr($day, 0, 4)=="2016") or (substr($day, 0, 4)=="2017") or (substr($day, 0, 4)=="2018") or (substr($day, 0, 4)=="2022"))) { echo "

" . $day." is currently selected.

\n"; if (($day=="20180228") or ($day=="20180301")) { print "

See York small sensor data below graph.

"; } DataDownloadPreamble(); DataDownloadTableMobileLab($day); if (file_exists("../../data/MobileLab/kml/drive$day.kml.zip")) { print "

KML file: $day

"; } if (file_exists("notes/notes$day.txt")) { print "

Notes from drive: $day (txt)

"; } if (file_exists("../../data/MobileLab/png/$day/MetData/map$day.png")) { print "
"; } if (($day=="20180228") or ($day=="20180301")) { print "

York small sensor data - Preliminary (comma delimited, 1 min.)

"; print ""; print "

Data for comparison (tab delimited, 1 min.)

"; print ""; } } } } function filtermenu($filterArr) { $typefile = file_get_contents("DriveTypes.txt", FILE_USE_INCLUDE_PATH); $drivelist = ""; $lineArr = explode("\n", $typefile); // array now contains each line of file //$filter = $filterArr[0]; print "

\n"; print " \n"; print "\n"; } ?>